<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__rest__'=>[
        'admin/rules'          =>'admin/rules',
        'admin/groups'		   =>'admin/groups',
        'admin/users'		   =>'admin/users',
        'admin/menus'		   =>'admin/menus',
        'admin/structures'	   =>'admin/structures',
        'admin/posts'          =>'admin/posts',
    ],

    // 【基础】登录
    'admin/login' => ['admin/login/login', ['method' => 'get']],

    'admin/main' => ['admin/main/index', ['method' => 'get']],
    'admin' => ['admin/main/index', ['method' => 'get']],
    //菜单
    'admin/menu/index' => ['admin/menu/index', ['method' => 'get']],
    'admin/menu/add' => ['admin/menu/add', ['method' => 'get|post']],
    'admin/menu/edit' => ['admin/menu/edit', ['method' => 'get']],

    //app模块
    'admin/app/index' => ['admin/app/index', ['method' => 'get']],
    'admin/app/add' => ['admin/app/add', ['method' => 'get|post']],

    //api模块
    'admin/api/index' => ['admin/api/index', ['method' => 'get']],
    'admin/api/add' => ['admin/api/add', ['method' => 'get|post']],

    'blog/:id'=>['index/index/detail',['method'=>'get']],

    'blog'=>['index/index/index',['method'=>'get']],


    // MISS路由
    //'__miss__'  => 'common/common/miss',

];
